package com.quanquan.store.repository;

import com.quanquan.store.entity.CouponValueType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @ClassName:CouponValueTypeRepository
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/4/26 16:48
 * @Version 1.0
 */
public interface CouponValueTypeRepository extends JpaRepository<CouponValueType,String>{

    @Query(value = "select * from oo_coupon_value_type where status_show = 0 and status_remove = 0",nativeQuery = true)
    List<CouponValueType> findByStatusRemoveAndAndStatusShow();
}
